package com.syni.mdd.yhd.common.all.service;

import com.syni.mdd.yhd.common.all.dao.jpa.BmsThirdCodeDao;
import com.syni.mdd.yhd.common.all.entity.BmsDxGroupBuy;
import com.syni.mdd.yhd.common.all.entity.BmsDxOrder;
import com.syni.mdd.yhd.common.all.entity.groupBuy.BmsThirdCode;

import java.util.List;
import java.util.Set;

/**
 * @className  BmsBusinessCouponService
 * @description TOO
 * @Author hwq
 * @DATE 2019/9/23 10:32
 * @VERSION 1.0
 **/
public interface BmsThirdCodeService {


    BmsThirdCodeDao getBaseDao();

    List<String> findCanUseCode(BmsDxOrder bmsDxGroupBuy);

    List<BmsThirdCode> checkUseCodeHavingUseNum(Integer businessId,Integer groupBuyId,Integer groupBuyNum);

    void stockReturn(Set<String> verNo,Integer orderId);

    void stockReturn(Integer orderId);
}
